﻿using System;
using System.ComponentModel;
using System.Runtime.InteropServices;

namespace Teigha.Core
{
	public class OdGiClipBoundaryWithAbstractData : OdGiClipBoundary
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdGiClipBoundaryWithAbstractData(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiClipBoundaryWithAbstractData_SWIGUpcast(cPtr), cMemoryOwn)
		{
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdGiClipBoundaryWithAbstractData obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdGiClipBoundaryWithAbstractData()
		{
			this.Dispose();
		}

		public override void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							GlobalsPINVOKE.delete_OdGiClipBoundaryWithAbstractData(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
			base.Dispose();
		}

		public OdGiAbstractClipBoundary m_pAbstractData
		{
			get
			{
				IntPtr intPtr = GlobalsPINVOKE.OdGiClipBoundaryWithAbstractData_m_pAbstractData_get(this.swigCPtr);
				OdGiAbstractClipBoundary result = (intPtr == IntPtr.Zero) ? null : new OdGiAbstractClipBoundary(intPtr, false);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
			set
			{
				GlobalsPINVOKE.OdGiClipBoundaryWithAbstractData_m_pAbstractData_set(this.swigCPtr, OdGiAbstractClipBoundary.getCPtr(value));
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
			}
		}

		public OdGiClipBoundaryWithAbstractData() : this(GlobalsPINVOKE.new_OdGiClipBoundaryWithAbstractData__SWIG_0(), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGiClipBoundaryWithAbstractData(OdGiClipBoundary pBoundary, OdGiAbstractClipBoundary pAbsData) : this(GlobalsPINVOKE.new_OdGiClipBoundaryWithAbstractData__SWIG_1(OdGiClipBoundary.getCPtr(pBoundary), OdGiAbstractClipBoundary.getCPtr(pAbsData)), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGiClipBoundaryWithAbstractData(OdGiClipBoundary pBoundary) : this(GlobalsPINVOKE.new_OdGiClipBoundaryWithAbstractData__SWIG_2(OdGiClipBoundary.getCPtr(pBoundary)), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGiClipBoundaryWithAbstractData(OdGiClipBoundaryWithAbstractData pBoundary) : this(GlobalsPINVOKE.new_OdGiClipBoundaryWithAbstractData__SWIG_3(OdGiClipBoundaryWithAbstractData.getCPtr(pBoundary)), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		private object locker = new object();

		private HandleRef swigCPtr;
	}
}
